﻿using NUnit.Framework;

using octalforty.Syndication.Core.Rss;

namespace octalforty.Syndication.UnitTests.Core.Rss
{
    /// <summary>
    /// <see cref="RssItem"/> unit tests.
    /// </summary>
    [TestFixture()]
    public class RssItemTestFixture : RssEntityBaseTestFixture
    {
        [Test()]
        public void NoArgumentConstructor()
        {
            RssItem rssItem = new RssItem();

            Assert.IsNull(rssItem.Author);
            Assert.IsEmpty(rssItem.CommentsPageUrl);
            Assert.IsNull(rssItem.Enclosure);
            Assert.IsNull(rssItem.Guid);
            Assert.IsNull(rssItem.Source);
        }

        #region RssEntityBaseTestFixture Members
        /// <summary>
        /// When overriden in a derived class, creates an instance of <see cref="RssEntityBase"/>.
        /// </summary>
        /// <returns></returns>
        protected override RssEntityBase CreateInstance()
        {
            return new RssItem();
        }
        #endregion
    }
}
